package com.yhgarden.bbs.model.enums;/**
 * Created by Administrator on 2019/1/12.
 */

/**
 * @Author:debug (SteadyJack)
 * @Date: 2019/1/12 14:01
 **/
public enum StatusCode {

    SUCCESS(200,"成功"),
    ERROR(500,"系统内部错误"),
    TABLE_IS_EXIT(1000,"该物理表已经存在"),
    PARAMS_DEFICIENCY(1001, "参数缺失"),
    NOT_FOUND_ENTITY(1002, "未找到该实体"),
    RUNTIME_PARALLEL_COMPUTE_ERROR(1003,"并行计算出错"),
    NOT_FOUND_SELECT_ITEM(1004, "未找到选择项"),
    COMPLETENESS_DATA_ERROR(1005, "数据完整性错误"),
    ENTITY_PROPERTY_HAS_DELETED(1006, "实体属性已经被删除"),
    ENTITY_HAS_DELETED(1007, "实体已经被删除"),
    FILE_NOT_FOUND(1008, "找不到文件"),
    GET_IMAGE_FAIL(1009,"URL获取图片失败"),
    USER_NOT_FOUND(1010,"用户不存在"),
    PASSWORD_INCORRECT(1011,"密码不正确"),
    USER_HAS_BEEN_EXIT(1012,"用户已经存在"),
    NOT_FOUND_CONSUME_SERVICE(1013,"根据topic和tag没有找到对应的消费服务"),
    HANDLE_RESULT_NULL(1014,"消费方法返回值为空"),
    CONSUME_FAIL(1015,"消费失败"),
    CREATE_INDEX_FAIL(1016,"创建索引失败"),
    ES_INSERT_DATA_FAIL(1017,"ES新增数据失败"),
    ES_QUERY_MAPPING_FAIL(1018,"ES查询Mapping失败"),
    ES_QUERY_DATA_FAIL(1019,"ES查询数据失败"),
    ES_DELETE_DATA_FAIL(1020,"ES删除数据失败"),
    RANDOM_CODE_ERROR(1021,"验证码错误"),
    PUBLIC_KEY_EXPIRED(1022,"公钥过期，请刷新页面重新加载"),
    PHONE_HAS_BINGING_ANOTHER_ACCOUNT(1023,"该手机号已经绑定了其他帐号"),
    EMAIL_HAS_BINGING_ANOTHER_ACCOUNT(1024,"该邮箱已经绑定了其他帐号"),
    SESSION_TIMEOUT(1025,"session过期，请刷新页面重新加载"),
    USER_STATUS_FREEZE(1026,"账户被冻结，请联系管理员"),
    USER_NOT_LOGIN(1027,"用户未登录，请重新登录"),
    ILLEGAL_ACCESS_INTERFACE(1028,"非法访问接口，请求失败！"),
    REMAINING_INTEGRAL(1029,"剩余积分不足"),
    ;

    private Integer code;
    private String msg;

    StatusCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}





















